<%--
  Created by IntelliJ IDEA.
  User: www
  Date: 2021/10/28
  Time: 16:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>编辑爱车</title>
    <link type="text/css" rel="stylesheet" href="fontsawesome/css/font-awesome.css"/>
    <link type="text/css" rel="stylesheet" href="css/style.css"/>
    <link type="text/css" rel="stylesheet" href="css/datepicker.css"/>
</head>
<body>
<div class="main_box">
    <div class="cont_box editpro_box">
        <form action="${pageContext.request.contextPath}/edit_CarController" method="post" id="user_form">
            <ul class="addpro_box adduser_box">
                    <li>
                        <label></label>
                        <input type="hidden" value="${memberCar.cid}" name="cid" />
                    </li>
                <li>
                    <label>车牌号：</label>
                    <input type="text" value="${memberCar.c_number}" name="c_number" required data-rule-isCarNo="true" data-msg-required="车牌号码不能为空"/>
                </li>
                <li>
                    <label>行驶里程：</label>
                    <input type="text" value="${memberCar.car_travel}" name="car_travel" required data-rule-mileage="true" data-msg-required="行驶里程不能为空"/>
                </li>
                <li>
                    <label>保险到期日：</label>
                    <input type="text" class="choose_date" value="${date}" name="date" required data-msg-required="保险到期日不能为空"/>
                </li>
                <li>
                    <label>车品牌型号：</label>
                    <div class="select_group" id="carmodel">
                        <select name="car_brand" class="carbrand" data-value="${memberCar.car_brand}" required data-msg-required="车品牌型号不能为空">
                            <option value="${memberCar.car_brand}">请选择</option>
                        </select>
                        <select name="car_series" class="carmodela" data-value="${memberCar.car_series}" required data-msg-required="车品牌型号不能为空">
                            <option value="${memberCar.car_series}">请选择</option>
                        </select>
                        <select name="carmodelb" class="carmodelb" data-value="Sport" required data-msg-required="车品牌型号不能为空">
                            <option value="Sport">请选择</option>
                        </select>
                        <select name="car_model" class="carmodelc" data-value="${memberCar.car_model}" required data-msg-required="车品牌型号不能为空">
                            <option value="${memberCar.car_model}">请选择</option>
                        </select>
                    </div>
                </li>
            </ul>
            <div class="probtn_box clearfix">
                <input type="submit" value="保存修改" class="btn blue_btn submit"/>
            </div>
        </form>
    </div>
</div>
<!--javascript include-->
<script src="js/jquery-2.2.1.min.js"></script>
<script src="js/jquery.dataTables.min.js"></script>
<script src="js/bootstrap-datepicker.js"></script>
<script src="js/jquery.validate.min.js"></script>
<script src="js/jquery.form.min.js"></script>
<script src="js/jquery.cxselect.min.js"></script>
<script src="js/other.js"></script>
<script>
    $(function(){
        // $("body").other({formId:"#user_form",formUrl:"#"});//formUrl 表单请求地址,linkHref 请求成功后跳转地址，此页面不需要，已删除
        $("#carmodel").cxSelect({
            url: "js/carModel.json",
            selects: ["carbrand", "carmodela", "carmodelb", "carmodelc"],
            emptyStyle: "none"
        });
    });
</script>
</body>
</html>